#include <stdio.h>

#define PINT_PER_CUP 2
#define CUP_PER_OUNCE 8
#define OUNCE_PER_SOUPLADLE 2
#define SOUPLADLE_PER_TEASPOON 3

int main(void)
{
    float cup, pint, ounce, soup_ladle, teaspoon;

    printf("Please enter cup number: ");
    scanf("%f", &cup);

    pint = cup / PINT_PER_CUP;
    ounce = cup * CUP_PER_OUNCE;
    soup_ladle = cup * CUP_PER_OUNCE * OUNCE_PER_SOUPLADLE;
    teaspoon = soup_ladle * SOUPLADLE_PER_TEASPOON;

    printf("Your cup equal to %.2f pints or %.2f ounces or %.2f soup ladles or %.2f teaspoons.\n", pint, ounce, soup_ladle, teaspoon);

    return 0;
}
//思考题：因为输入的杯数不一定是整数，而且就算是整数，在转换为品脱时有可能不是整数。